package com.sc.sc250601.cook.service.impl;

import com.sc.sc250601.cook.mapper.CategoryMapper;
import com.sc.sc250601.cook.pojo.Category;
import com.sc.sc250601.cook.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    CategoryMapper cm;


    @Override
    public List<Category> getAll() {
        return cm.selectAlls();
    }
    public List<String> selectAllTypeName() {
        return cm.selectAll();
    }
}
